package com.project.bean;

import java.time.LocalDate;
import java.util.List;

/***
 * 员工实体类
 */
public class EmployeeBean {
    /**员工编号*/
    private int id;
    /**员工姓名*/
    private String name;
    /**员工生日*/
    private LocalDate birthday ;
    /**员工入职日期*/
    private LocalDate onboarding = LocalDate.now();
    /**员工专长*/
    private String specialty;
    /**员工状态*/
    private String statues="在职";
    /**员工工资*/
    private int money;
    /**头像*/
    private String imgPath;
    /**电话*/
    private String phone;
    /**员工参与项目的集合*/
    private List<PProgressBean> projectBeans;

    public EmployeeBean() {
    }

    public EmployeeBean(String name, LocalDate birthday, String specialty, int money, String imgPath, String phone) {
        this.name = name;
        this.birthday = birthday;
        this.specialty = specialty;

        this.money = money;
        this.imgPath = imgPath;
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<PProgressBean> getProjectBeans() {
        return projectBeans;
    }

    public void setProjectBeans(List<PProgressBean> projectBeans) {
        this.projectBeans = projectBeans;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDate getOnboarding() {
        return onboarding;
    }

    public void setOnboarding(LocalDate onboarding) {
        this.onboarding = onboarding;
    }

    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public String getStatues() {
        return statues;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public void setStatues(String statues) {
        this.statues = statues;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "EmployeeBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                ", onboarding=" + onboarding +
                ", specialty='" + specialty + '\'' +
                ", statues='" + statues + '\'' +
                ", money=" + money +
                ", imgPath='" + imgPath + '\'' +
                ", phone='" + phone + '\'' +
                ", projectBeans=" + projectBeans +
                "}\n";
    }
}
